<template>
	<view class='box'>
		<view class="sun">
			<image src="../../../static/sun.png" alt="" class='sunbody'>
				<image src="../../../static/eye.png" alt="" class='eye'>
		</view>
		<text class="tip">loading...</text>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				pdfUrl: '',
				htmlUrl: '/hybrid/html/web/viewer.html',
			}
		},
		onLoad(options) {
			let fileUrl = encodeURIComponent(options.pdfUrl)
			this.pdfUrl = this.htmlUrl + '?file=' + fileUrl
		}
	}
</script>






<style>
	page,
	uni-page {
		background-color: var(--c-bg-3);
		color: var(--c-txt-1);
		font-size: var(--f-size-2);

		/* font-size */
		--f-size-1: 24rpx;
		--f-size-2: 28rpx;
		--f-size-3: 32rpx;
		--f-size-4: 36rpx;
		--f-size-5: 40rpx;
		--f-size-6: 44rpx;

		/* color | background */
		--c-txt-1: #FFFFFF;
		--c-txt-2: #95A1A6;
		--c-txt-3: #cdced0;

		--c-bg-1: #000000;
		--c-bg-2: #7E7F94;
		--c-bg-3: #0b0c21;

		/*--c-bg-2:#7E7F94;
			
			/* padding-left | right */
		--pad-lr: 32rpx;

		/* navbar-height */
		--h-head: 96rpx;

		/* input placeholder text color */
		--c-input-holder: #696a7f;
	}

	page {
		background-color: #ffffff;
	}

	.box {
		width: 306rpx;
		height: 300rpx;
		margin: 300rpx auto 0;
		background: url(../../../static/1.png) no-repeat left bottom;
		background-size: contain;
		position: relative;
	}

	.sun {
		width: 200rpx;
		height: 180rpx;
		top: 28%;
		position: absolute;
		left: 27px;
		right: 7px;
		margin: 0 auto;
		z-index: -1;
		animation: move 2.7s infinite linear;
	}

	.sun .eye {
		position: absolute;
		top: 28%;
		left: 18%;
		width: 40rpx;
		height: 20rpx;
		animation: eye 2.7s infinite linear;
	}

	.sun .sunbody {
		width: 136rpx;
		height: 136rpx;
		animation: scroll 2.7s linear infinite;
	}

	.box .tip {
		text-align: center;
		padding: 0 100rpx;
		top: 200px;
		font-family: '苹方';
		font-size: 25rpx;
		color: #7a5600;
		animation: opp 2.7s infinite linear;
	}

	@keyframes move {
		0% {
			transform: translateY(0);
		}

		10% {
			transform: translateY(0);
		}

		40% {
			transform: translateY(-55rpx);
		}

		70% {
			transform: translateY(-55rpx);
		}

		100% {
			transform: translateY(0);
		}
	}

	@keyframes scroll {
		0% {
			transform: rotate(0);
		}

		40% {
			transform: rotate(0);
		}

		50% {
			transform: rotate(45deg);
		}

		60% {
			transform: rotate(45deg);
		}

		100% {
			transform: rotate(45deg);
		}
	}

	@keyframes eye {
		0% {
			transform: translateX(0rpx);
		}

		50% {
			transform: translateX(0rpx) scale(1, 1);
		}

		55% {
			transform: translateX(0rpx) scale(1, 0.1);
		}

		60% {
			transform: translateX(0rpx) scale(1);
		}

		70% {
			transform: translateX(26rpx);
		}

		100% {
			transform: translateX(26rpx);
		}
	}

	@keyframes opp {
		0% {
			opacity: 1;
		}

		40% {
			opacity: 1;
		}

		60% {
			opacity: 0;
		}

		100% {
			opacity: 1;
		}
	}
</style>
